package org.dut.ioc.v2;

public class Main {
    public static void main(String[] args) {

        //IOC
        //将创建对象的权力统一交给第三方
        Tire tire = new Tire(5);
        Bottom bottom = new Bottom(tire);
        Framework framework =new Framework(bottom);
        Car car = new Car(framework);
        car.drive();

    }
}
